import { createRouter, createWebHistory } from 'vue-router';

// 导入组件
import Home from '../pages/Home.vue';
import Organizations from '../components/Organizations.vue';
import Characters from '../components/Characters.vue';
import About from '../components/About.vue';
import Strategy from '../pages/Strategy.vue';

// 定义路由
const routes = [
  {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/organizations',
      name: 'Organizations',
      component: Organizations
    },
    {
      path: '/characters',
      name: 'Characters',
      component: Characters
    },
  {
    path: '/about',
    name: 'About',
    component: About
  },
  {
    path: '/strategy',
    name: 'Strategy',
    component: Strategy
  }
];

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;